package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.Navigation;
import com.nbsaas.boot.cms.api.domain.request.NavigationRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 导航菜单请求对象转换成实体对象
*/

public class NavigationEntityConvert  implements Converter<Navigation, NavigationRequest> {

    @Override
    public Navigation convert(NavigationRequest source) {
        Navigation result = new Navigation();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

